.class public Lcom/netease/newsreader/view/PreferenceListView;
.super Landroid/widget/ListView;
.source "PreferenceListView.java"


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0
    .parameter "context"

    .prologue
    .line 25
    invoke-direct {p0, p1}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V

    .line 26
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0
    .parameter "context"
    .parameter "attrs"

    .prologue
    .line 21
    invoke-direct {p0, p1, p2}, Landroid/widget/ListView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 22
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0
    .parameter "context"
    .parameter "attrs"
    .parameter "defStyle"

    .prologue
    .line 17
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ListView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 18
    return-void
.end method

.method private applyThemeForChild(Landroid/view/View;)V
    .locals 5
    .parameter "child"

    .prologue
    .line 39
    invoke-virtual {p0}, Lcom/netease/newsreader/view/PreferenceListView;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 41
    .local v0, context:Landroid/content/Context;
    invoke-static {v0}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->getThemeSettingsHelper(Landroid/content/Context;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v2

    .line 42
    .local v2, themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;
    const v4, 0x1020016

    invoke-virtual {p1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 43
    .local v3, title:Landroid/widget/TextView;
    if-eqz v3, :cond_0

    .line 44
    const v4, 0x7f080027

    invoke-virtual {v2, v0, v3, v4}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 46
    :cond_0
    const v4, 0x1020010

    invoke-virtual {p1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 47
    .local v1, summary:Landroid/widget/TextView;
    if-eqz v1, :cond_1

    .line 48
    const v4, 0x7f08001f

    invoke-virtual {v2, v0, v1, v4}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 50
    :cond_1
    return-void
.end method


# virtual methods
.method protected layoutChildren()V
    .locals 3

    .prologue
    .line 30
    invoke-super {p0}, Landroid/widget/ListView;->layoutChildren()V

    .line 32
    invoke-virtual {p0}, Lcom/netease/newsreader/view/PreferenceListView;->getChildCount()I

    move-result v0

    .line 33
    .local v0, N:I
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    if-lt v1, v0, :cond_0

    .line 36
    return-void

    .line 34
    :cond_0
    invoke-virtual {p0, v1}, Lcom/netease/newsreader/view/PreferenceListView;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-direct {p0, v2}, Lcom/netease/newsreader/view/PreferenceListView;->applyThemeForChild(Landroid/view/View;)V

    .line 33
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method
